package com.epfly.promo.activity.impl;

import com.google.common.base.Joiner;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;

import java.util.List;

public class ActivityUtil {

    public static final String DELIMITER = ";";

    public static String join(List<Byte> l) {
        if (CollectionUtils.isEmpty(l)) {
            return StringUtils.EMPTY;
        }
        String join = Joiner.on(DELIMITER).join(l);
        return DELIMITER + join + DELIMITER;
    }

    public static String join(Integer s) {
        return join(s.byteValue());
    }

    public static String join(Byte s) {
        return DELIMITER + s + DELIMITER;
    }



}
